<!--{template user/header}-->
<div style="height:30px;">&nbsp;</div>
<table class="list-table" border="0" cellpadding="0" cellspacing="0">
	<thead>
		<tr>
			<th colspan="6" class="lt-th" style="position:relative;">
				<strong>兑换订单</strong>
				<select id="orderStatus" style="position:absolute;right:1px;top:1px;">
					<option value="0">所有订单</option>
					<option value="1" {if $goods_status == 1}selected{/if}>处理中</option>
					<option value="2" {if $goods_status == 2}selected{/if}>已完成</option>
				</select>
			</th>
		</tr>
	</thead>
	<tbody>
		<tr class="lt-title">
			<th class="first" width="110">订单号</th>
			<th width="200">兑换商品</th>
			<th width="130">下单时间</th>
			<th width="70">使用积分</th>
			<th width="70">处理状态</th>
			<th class="last">处理结果</th>
		</tr>
		{loop $list $order}
		<foreach name="list" item="order">
		<tr>
			<td class="lt-td first">$order['sn']</td>
			<td class="lt-td tl">$order['data_name']</td>
			<td class="lt-td">$order['create_time']</td>
			<td class="lt-td">$order['order_score']</td>
			<td class="lt-td">$order['goods_status']</td>
			<td class="lt-td last tl">$order['adm_memo']</td>
		</tr>
		{/loop}
	</tbody>
	<!--{if $pager['page_count'] > 1}-->
	<tfoot>
		<tr>
			<td colspan="6" class="pages">
				<!--{subtemplate user/pages}-->
			</td>
		</tr>
	</tfoot>
	<!--{/if}-->
</table>

<script type="text/javascript"> 
jQuery(function($){
	$("#orderStatus").change(function(){
		var url = "{eval echo U('user/order',array('status'=>'###'))}";
		var status = this.value;
		var fun = function(){
			location.href= url.replace("###",status);
		}
		setTimeout(fun,1);
	});
});
</script>
<!--{template user/footer}-->